//导航下拉菜单
$("#b2").hover(function() {
	$("#menu").css("display", "block");
}, function() {
	$("#menu").css("display", "none");
});
$("#menu").hover(function() {
	$("#menu").css("display", "block");
}, function() {
	$("#menu").css("display", "none");
});
//二维码
$("#weixin").hover(function() {
	$("#code").css("display", "block");
}, function() {
	$("#code").css("display", "none");
});
$("#pic1").on("click", function() {
	window.open("http://www.subway.com.cn/images/uploadImg/2016040117224114977a.png");
});
$("#pic2").on("click", function() {
	window.open("http://www.subway.com.cn/images/uploadImg/201612191444322d3b38.jpg");
});
//分页点击事件
var introductionContentOne = document.getElementById("introductionContentOne");
var introductionContentTwo = document.getElementById("introductionContentTwo");
var introductionContentThree = document.getElementById("introductionContentThree");
var introductionContentFour = document.getElementById("introductionContentFour");
var introductionContentFive = document.getElementById("introductionContentFive");
var introductionContentSix = document.getElementById("introductionContentSix");
var tab1 = document.getElementById("tab1");
var tab2 = document.getElementById("tab2");
var tab3 = document.getElementById("tab3");
var tab4 = document.getElementById("tab4");
var tab5 = document.getElementById("tab5");
var tab6 = document.getElementById("tab6");
var code = document.getElementById("code");
tab1.onclick = function() {
	if(introductionContentOne.style.display == "block") {
		introductionContentOne.style.display = "none";
	} else {
		introductionContentOne.style.display = "block";
	}
	code.style.top = 685 + "px";
}
tab2.onclick = function() {
	if(introductionContentTwo.style.display == "block") {
		introductionContentTwo.style.display = "none";
	} else {
		introductionContentTwo.style.display = "block";
	}
	code.style.top = 1090 + "px";
}
tab3.onclick = function() {
	if(introductionContentThree.style.display == "block") {
		introductionContentThree.style.display = "none";
	} else {
		introductionContentThree.style.display = "block";
	}
	code.style.top = 685 + "px";
}
tab4.onclick = function() {
	if(introductionContentFour.style.display == "block") {
		introductionContentFour.style.display = "none";
	} else {
		introductionContentFour.style.display = "block";
	}
	code.style.top = 1960 + "px";
}
tab5.onclick = function() {
	if(introductionContentFive.style.display == "block") {
		introductionContentFive.style.display = "none";
	} else {
		introductionContentFive.style.display = "block";
	}
	code.style.top = 615 + "px";
}
tab6.onclick = function() {
	if(introductionContentSix.style.display == "block") {
		introductionContentSix.style.display = "none";
	} else {
		introductionContentSix.style.display = "block";
	}
	code.style.top = 1550 + "px";
}
